<?
require_once (__DIR__ . '/../models/Accounts.php');
require_once (__DIR__ . '/../models/Users.php');
	switch ($_SERVER['REQUEST_METHOD']) {
		case 'POST':
			break;			
		case 'PUT':			
			break;
		case 'DELETE':			
			break;
		case 'GET':
			/* Logged-in check from javascript */
			if(isset($_GET['isloggedin']))
			{
				if (IsLoggedIn())
					$data = Array('isloggedin' => true);
				else
					$data = Array('isloggedin' => false);
				echo json_encode($data);				
			}
			break;
		default:
			break;	
	}